package com.oop;

public class Test2 {
    public static void main(String[] args) {
        int[]arr={3,5,84};
        A.print(arr);
        System.out.println("====修改后====");
        A.test111(arr);
        A.print(arr);
    }
}

class A{
    public static void test111(int[]arr){
        arr[0]=666;
        arr[1]=777;
    }
    public static void print(int[]arr){
        for(int i=0;i<arr.length;i++){
            System.out.print(arr[i]+" ");
        }
        System.out.println();
    }
}
